package com.example.test2.retrofit;

import com.example.test2.service.HotService;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class HotClient {
    private static final String BASE_URL = "https://api.oioweb.cn/";

    static Retrofit getRetrofitInstance() {
        return new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public static HotService getHotService() {
        return getRetrofitInstance().create(HotService.class);
    }
}
